import { defHttp } from '/@/utils/http/axios';

const OrderCancelApi = {
  GetPage: `/ttOrderCancelRecord/queryTtOrderCancelRecordList.html`,
  DownLoad: `/ttOrderCancelRecord/downloadttOrderCancelRecordFile.html`,
  UpLoad: `/ttOrderCancelRecord/importttOrderCancelRecord.html`,
};

export const getPage = (params) => defHttp.post({ url: OrderCancelApi.GetPage, params });

// export const saveOrUpdate = (params, isUpdate: boolean) => {
//   return isUpdate
//     ? defHttp.post({ url: OrderCancelApi.Update, params })
//     : defHttp.post({ url: OrderCancelApi.Save, params });
// };
// export const deleteByIds = (params, handleSuccess) =>
//   defHttp.post({ url: OrderCancelApi.DeleteByIds, params }, { joinParamsToUrl: false }).then(() => {
//     handleSuccess();
//   });
